﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;
using ProgrammingSchool.Extensions;

namespace Messaging.Config
{
    public class SMTPConfig
    {
        static int smtpPort = ConfigurationManager.AppSettings["SmtpPort"].ParseOrSetDefault(25);
        public static int SmtpPort
        {
            get
            {
                return smtpPort;
            }
        }
        static bool smtpEnableSSL = ConfigurationManager.AppSettings["SmtpEnableSSL"].ParseOrSetDefault(false);
        public static bool SmtpEnableSSL
        {
            get
            {
                return smtpEnableSSL;
            }
        }

        static bool smtpUseDefaultCredentials = ConfigurationManager.AppSettings["SmtpUseDefaultCredentials"].ParseOrSetDefault(false);
        public static bool SmtpUseDefaultCredentials
        {
            get
            {
                return smtpUseDefaultCredentials;
            }
        }

        static string smtpServer = ConfigurationManager.AppSettings["SmtpServer"];
        public static string SmtpServer
        {
            get
            {
                return smtpServer;
            }
        }

        static string smtpPassword = ConfigurationManager.AppSettings["SmtpPassword"];
        public static string SmtpPassword
        {
            get
            {
                return smtpPassword;
            }
        }

        static string smtpUserName = ConfigurationManager.AppSettings["SmtpUserName"];
        public static string SmtpUserName
        {
            get
            {
                return smtpUserName;
            }
        }

        static string smtpDisplayName = ConfigurationManager.AppSettings["SmtpDisplayName"];
        public static string SmtpDisplayName
        {
            get
            {
                return smtpDisplayName;
            }
        }
    }
}
